package com.woniu.controller;

import com.woniu.entity.WaitPutaway;
import com.woniu.service.impl.WaitPutawayServiceImpl;

import java.util.List;

public class WaitPutawayController {
    public static void insertWaitPutaway(WaitPutaway waitPutaway) {
       WaitPutawayServiceImpl waitPutawayService = new WaitPutawayServiceImpl();
       waitPutawayService.insertWaitPutaway(waitPutaway);
    }
    public static List<WaitPutaway> selectWaitPutaway(){
        WaitPutawayServiceImpl waitPutawayService = new WaitPutawayServiceImpl();
        return waitPutawayService.selectWaitPutaway();
    }
    public static void deleteWaitPutaway(int wid){
        WaitPutawayServiceImpl waitPutawayService = new WaitPutawayServiceImpl();
        waitPutawayService.deleteWaitPutaway(wid);
    };

    public static WaitPutaway selectWaitPutawayByWid(int wid){
        WaitPutawayServiceImpl waitPutawayService = new WaitPutawayServiceImpl();
        return waitPutawayService.selectWaitPutawayByWid(wid);
    };
}
